<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" 	uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" 	uri="http://java.sun.com/jsp/jstl/functions"  %>
<!DOCTYPE html>
<html lang="en">
<%@include file="head.jsp" %>
<body>
	<div class="container">
		<div class="row">
			<div class="col-md-4">
				<form action="/webtest/authors/save" role="form" method="post">
					<div class="form-group">
						<label for="age">Age:</label>
						<input type="text" name="age" id="age" class="form-control" />
					</div>
					<div class="form-group">
						<label for="name">Name:</label>
						<input type="text" name="name" id="name" class="form-control" />
					</div>
					<button type="submit" class="btn btn-primary">Add</button>
				</form>			
			 </div>
		 </div>
		<div class="row">
			<div class="col-xs-6 col-sm-3">
			<table class="table">
				<c:forEach items="${authors}" var="author">
				<tr>
					<td>${author.name}</td>
					<td>${author.age}</td>
				</tr>
				</c:forEach>
			</table>
			</div>
		</div>
	</div>
</body>
</html>